package com.wdl.fmnew.app.fragmentDemo.demo01;

import javax.inject.Inject;

/**
 * Created by wdl on 2017/9/19.
 */

public class Demo01Presenter implements Demo01Contract.Presenter {
    Demo01Contract.View view;

    @Inject
    Demo01Model demo01Model;

    @Inject
    public Demo01Presenter() {
    }

    @Override
    public void takeView(Demo01Contract.View view) {
        this.view = view;
    }

    @Override
    public void dropView() {
        this.view = null;
    }

    @Override
    public void testData() {
        view.showData(demo01Model.getData());
    }
}
